package common.core.domain.tcp;

import com.alibaba.fastjson.JSONObject;
import io.netty.channel.ChannelHandlerContext;
import lombok.Data;

import java.net.InetSocketAddress;

@Data
public class TcpApiProtocol {

    private ChannelHandlerContext ctx;
    private InetSocketAddress remoteAddress;
    private JSONObject buffer;

    private String apiName;
    private String protocol;
    private String method;
    private String version;

    private String remoteIP;
    private int remotePort;
    private String localIP;
    private int localPort;


    public TcpApiProtocol(ChannelHandlerContext ctx, InetSocketAddress remoteAddress, JSONObject buffer){
        this.ctx = ctx;
        this.remoteAddress = remoteAddress;
        this.buffer = buffer;
    }
}
